package com.wanxi.util;

public class MyEquals {
    public static void main(String[] args) {
        String s1 = "abc";
        String s2 = "abc";
        String s3 = new String("abc");
//        char[] chars = {'a', 'b', 'c'};
        String s4 = new String(new char[]{'a', 'b', 'c'});
        System.out.println(s1.equals(s3));
        System.out.println(s1.equals(s4));
    }
}
